import request from "@/config/request.js";

export const loadAdminCourse=function (params={}) {
  return request({
    url: "/api/v1/admin/course",
    method: "get",
    params: params
  })
}
export const removeAdminCourse=function (course_id) {
  return request({
    url: '/api/v1/admin/course',
    method: 'delete',
    params: { course_id },
  })
}
export const insertNewCourse=function (params={}){
  return request({
    url: "/api/v1/admin/course",
    method: "post",
    data: params
  })
}
export const updateAdminCourse=function (params={}){
  return request({
    url: "/api/v1/admin/course",
    method: "put",
    data: params
  })
}
